package com.jsz.peini.mapper.user;

import java.util.LinkedHashMap;
import java.util.List;
import com.jsz.peini.bean.user.UserConcern;
import com.jsz.peini.bean.user.UserConcernExample;

public interface UserConcernMapper {
	//删除关注
    int delete(Integer id);
    //查询是否有关注
    UserConcern selectNum(UserConcern userConcern);
    //我关注的人
    List<LinkedHashMap<String,Object>> selectMyConcern(String userId);
    //我的粉丝
    List<LinkedHashMap<String,Object>> selectMyFans(String userId);
    //我的好友
    List<LinkedHashMap<String,Object>> selectMyFriends(String userId);
    //我关注的人
    int selectCountMyConcern(String userId);
    //我的粉丝
    int selectCountMyFans(String userId);
    //删除对方的好友关系
    void delFriend(UserConcern userConcern);
    //添加对方的好友关系
    void addFriend(UserConcern userConcern);
    
    //我的好友
    int selectCountMyFriends(String userId);
    
    int deleteByPrimaryKey(Integer id);

    int insert(UserConcern record);

    int insertSelective(UserConcern record);

    List<UserConcern> selectByExample(UserConcernExample example);

    UserConcern selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserConcern record);

    int updateByPrimaryKey(UserConcern record);
    
    List<LinkedHashMap<String, Object>> getUserInfoByOtherId(String id);
    
    List<LinkedHashMap<String, Object>> selectAllUserConcern();
    
    List<LinkedHashMap<String, Object>> selectUserConcernByUserId(String userId);
    
	int selectRankPosition(String userId); 
}